package com.juntuo.controller;


import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class TestController {
    @RequestMapping("/test/cookbook/{id}")
    public Map<String,Object> getCookbook(@PathVariable Integer id){
        Map<String,Object> map = new HashMap<>();
        map.put("id",id);
        map.put("name","红烧鱼");
        map.put("total","一共有几个步骤");
        map.put("step1","1qaaaaaa");
        map.put("step2","1qbbbbb");
        map.put("step3","cccccc");
        map.put("command","这里只是临时说明，对于烤箱 蒸箱来说会有小火/大火--时间的命令");
        map.put("comment","这个整个回复只是临时性的，供调http的，里面字段可能会重新考虑");
        return map;
    }
}
